<?php
/**
 * <https://y.st./>
 * Copyright © 2018 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'A surprisingly pleasant day',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<section id="snow">
	<h2>Weather</h2>
	<p>
		I stayed up way too late last night (or should I say, this morning) working on coursework.
		I think I went to bed at about 09:00 ... it was past 08:00, in any case.
		Before I went to sleep, I happened to look outside ... and it was snowing.
		Joy.
		I dreaded the thought of biking to work through the snow when I awoke.
		By the time I needed to head in though, enough of it was gone.
		There was still snow almost everywhere, but all the paths were clear.
		I don&apos;t think anyone shovelled it, either; there was just light enough snow and heavy enough traffic that it melted.
	</p>
</section>
<section id="work">
	<h2>Work</h2>
	<p>
		At work, I got stationed on the oven landing.
		Joy.
		Oven landing&apos;s become my least favourite position in the store, even worse than boring dough-flattening.
		The problem is the new computerised system and my inconsiderate coworkers.
		I can&apos;t go into details about why this happens, as it&apos;s privileged information, but we frequently need to reprint the barcodes used to scan out pizzas.
		The system was simply built for an idealised world, not the world we actually work in.
		Anyway, when we were first learning to use the system, the head manager made what would later prove to be a horrible choice.
		I&apos;m in no way standing up for the head manager, as they&apos;re a spineless coward, but this particular choice wasn&apos;t their fault.
		They had no idea what trouble it&apos;d cause and they were trying to keep the store running dispite this system that doesn&apos;t act as it needs to.
		They showed us all a trick for overriding the reprint requirement while still getting the register to accept money from the customers: we can input it as a bogus order, take the money, send out the pizzas right away, then later the &quot;order&quot; comes through and we ignore it.
		However, it makes a big mess at landing.
		For each pizza in a bogus order, an invalid and unusable barcode is printed out.
		We have to quickly take pizzas from the oven, then cut, box, and barcode them.
		When most of the barcodes printed out are bogus, we have to keep reprinting them until we get valid ones.
		Meanwhile, more pizzas are coming out and we&apos;re having to rush to keep them from burning.
		Instead of the till people reprinting like they should, that job then falls to the already-rushed landing workers.
		For that reason, when I&apos;m on a register, I <strong>*always*</strong> do all my reprinting unless there&apos;s some sort of technical issue.
		The system&apos;s running Windows after all, so it frequently locks up.
		I haven&apos;t seen a day go by that that thing hasn&apos;t locked up for at least a few seconds, which I&apos;ll wait.
		However, every few days, we have to forcibly reboot it because it freezes entirely, and I can&apos;t make the customers wait five minutes while it restarts.
		Most people here aren&apos;t that considerate though.
	</p>
	<p>
		So today, I had the crappy job.
		Except ... both our till workers today were reasonable and actually did their jobs without even being asked to.
		I think I saw <strong>*one*</strong> order worth of invalid barcodes near the end of the day.
		It was probably while some inconsiderate worker was covering one of their breaks.
		For the rest of the day, no invalid barcodes came through, aside from one in which the printer glitched.
		Oh, yeah, I forgot to mention: sometimes the computer glitches out and tells the printer to print a gobbledygook barcode, with the bars broken up by a bunch of Unicode characters.
		Yeah.
		Our system is <strong>*that*</strong> broken.
		But anyway, working landing today was pleasant, like it used to be before the computer system was added.
	</p>
</section>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		My discussion post for the day:
	</p>
	<blockquote>
		<p>
			I like your reasoning, however, pres() doesn&apos;t take an inaugural date as input; it takes any calendar date in the 1789-04-30 to 2014-09-25 date range, and returns the name of the president in office for that date.
			That means that pres<sup>-1</sup>() has to return not the inaugural date, but <strong>*every*</strong> calendar date in which that president was in office.
			Because the function must return multiple values, it&apos;s not a function at all, as defined in mathematics.
			(In computer science though, we could define such a function using either an array or some sort of calendar range object.)
		</p>
	</blockquote>
</section>
END
);
